package com.atguigu.logging.controller;



import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
@Slf4j
public class TestController {
    // 下面这行代码可以不写,直接用@slf4j
//    Logger log = LoggerFactory.getLogger(this.getClass());
    @GetMapping("/hello")
    public String hello(String a,String b) {
        for (int i= 0;  i< 1000; ++i) {
            log.info("这是一个hello请求 a:{},b:{}",a,b);
        }
        return "hello";
    }
}
